/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mesaAyuda;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Lore
 */
@Entity
@Table(name = "DETALLETICKET")
@NamedQueries({
    @NamedQuery(name = "detalleTicket.findAll", query = "SELECT d FROM detalleTicket d")})
public class detalleTicket implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "IDDETALLETICKET")
    private Integer iddetalleticket;
    @Basic(optional = false)
    @Column(name = "IDTICKET")
    private int idticket;
    @Basic(optional = false)
    @Column(name = "IDUSUARIO")
    private int idusuario;
    @Basic(optional = false)
    @Column(name = "IDESTADO")
    private int idestado;
    @Column(name = "FECHA")
    @Temporal(TemporalType.DATE)
    private Date fecha;
    @Column(name = "OBSERVACIONES")
    private String observaciones;

    public detalleTicket() {
    }

    public detalleTicket(Integer iddetalleticket) {
        this.iddetalleticket = iddetalleticket;
    }

    public detalleTicket(Integer iddetalleticket, int idticket, int idusuario, int idestado) {
        this.iddetalleticket = iddetalleticket;
        this.idticket = idticket;
        this.idusuario = idusuario;
        this.idestado = idestado;
    }

    public Integer getIddetalleticket() {
        return iddetalleticket;
    }

    public void setIddetalleticket(Integer iddetalleticket) {
        this.iddetalleticket = iddetalleticket;
    }

    public int getIdticket() {
        return idticket;
    }

    public void setIdticket(int idticket) {
        this.idticket = idticket;
    }

    public int getIdusuario() {
        return idusuario;
    }

    public void setIdusuario(int idusuario) {
        this.idusuario = idusuario;
    }

    public int getIdestado() {
        return idestado;
    }

    public void setIdestado(int idestado) {
        this.idestado = idestado;
    }

    public Date getFecha() {
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    public String getObservaciones() {
        return observaciones;
    }

    public void setObservaciones(String observaciones) {
        this.observaciones = observaciones;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (iddetalleticket != null ? iddetalleticket.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof detalleTicket)) {
            return false;
        }
        detalleTicket other = (detalleTicket) object;
        if ((this.iddetalleticket == null && other.iddetalleticket != null) || (this.iddetalleticket != null && !this.iddetalleticket.equals(other.iddetalleticket))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "mesaAyuda.detalleTicket[ iddetalleticket=" + iddetalleticket + " ]";
    }
    
}
